package tools;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import view.ViewOc_If_Evaluate;

import entitybean.oc_if_evaluate.EntityBeanOc_If_Evaluate;

public class InterfaceIfEvaluateList {
	public List<ViewOc_If_Evaluate> ViewOc_News(ResultSet rs)
	{
		
		List<ViewOc_If_Evaluate> list =new ArrayList<ViewOc_If_Evaluate>();
		try {
			Integer i=1;
			while(rs.next())
		{				
				ViewOc_If_Evaluate viewoc_news=new ViewOc_If_Evaluate();
				viewoc_news.setOc_evaluate(rs.getString("oc_evaluate"));
				viewoc_news.setId(Integer.valueOf(rs.getString("ID")));
				viewoc_news.setUsername(rs.getString("username"));
				viewoc_news.setSubmit_date(rs.getString("SUBMIT_TIME"));
				viewoc_news.setDel(rs.getString("del"));
				list.add(viewoc_news);
				i=i+1;
		}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
		
	}
}
